package com.jagochan.module.business.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class CommentVO {

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "帖子ID")
    private Integer articleId;

    @Schema(description = "评论人")
    private Integer userId;

    @Schema(description = "回复数")
    private Integer replyCount;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "回复评论ID")
    private Integer commentId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 头像和名称来自user表
     */
    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "名称")
    private String name;

}


